package com.foreknow.dao;

import com.foreknow.model.Admin;
import com.foreknow.model.Guestbook;

import java.sql.SQLException;
import java.util.List;

public interface AdminDao {
    /**
     * 注册
     * @param
     * @return
     */
    public boolean register(Admin admin)throws SQLException;



    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    public Admin isLogin(String username,String password)throws SQLException;

    /**
     * 获取所有的用户名密码对象
     * @return
     */
    public List<Object> getAll() throws SQLException ;

}
